module.exports = {
	runtimeCompiler: true,

	chainWebpack: config => {
		config
			.plugin('html')
			.tap(args => {
				args[0].title = '红山开源平台'
				return args
			})

	},
	devServer: {
		port:8020,
		proxy: {
			'/api': {
				target: 'http://localhost:8001',
				changeOrigin: true,
				pathRewrite: {
					'^/api': ''
				}
			},
			'/script':{
				target: 'http://localhost:8888',
				changeOrigin: true,
				pathRewrite: {
					'^/script': ''
				}
			},
			'/osredm':{
				target: 'https://www.osredm.com/api',
				changeOrigin: true,
				pathRewrite: {
					'^/osredm': ''
				}
			}
		},
		// 此处开启 https
		https: false,

	}
}
